package org.jeecg.modules.demo.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.shop.entity.VipShopItem;
import org.jeecg.modules.demo.shop.entity.VipShop;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 积分商城
 * @Author: jeecg-boot
 * @Date:   2021-07-30
 * @Version: V1.0
 */
public interface IVipShopService extends IService<VipShop> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(VipShop vipShop,List<VipShopItem> vipShopItemList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(VipShop vipShop,List<VipShopItem> vipShopItemList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

    IPage<Map<String, Object>> listForMini(Page<VipShop> page);
}
